package com.ruoyi.taskSys.domain;

import cn.hutool.http.HttpUtil;

public class SMSTemplate {
    private static final String url = "http://utf8.api.smschinese.cn/?Uid=%s&Key=%s&smsMob=%s&smsText=验证码:%s";
    private static final String username = "會飞的鱼";
    private static final String key  = "EB64656ADBF772071A31A23DB842BC94";

    public void sendMessage(String phone,String messge){
        String format = String.format(url, username, key, phone, messge);
        String s = HttpUtil.get(format);
        System.out.println(s);
    }
}
